<template>
  <div class="all-item-container">
    <ul class="all-item-ul">
      <li class="item-li" v-for="(item,index) in showMessage" :key="index">
        <recommend-item-img :item="item"></recommend-item-img>
      </li>
    </ul>
  </div>
</template>

<script>
import RecommendItemImg from "@/components/recommend/recommendSmallItem/RecommendItemImg";

export default {
  components: {
    RecommendItemImg,
  },
  name: "RecommendMessage",
  data() {
    return {}
  },
  props: {
    showMessage: {
      type: Array,
    }
  },
  created() {
  
  },
  methods: {},
}
</script>

<style scoped lang="less">
.all-item-container {
  //width: 80%;
  
  .all-item-ul {
    height: auto;
    width: 100%;
    display: flex;
    flex: 1;
    flex-wrap: wrap;
    justify-content: space-between;
    align-content: space-around;
    
    .item-li {
      height: 45%;
      width: 17%;
      margin-top: 5%;
      transition: all .2s linear;
      
      &:hover {
        transform: translateY(-1px);
        box-shadow: 5px 5px 20px #AEAEAE;
      }
    }
  }
}
</style>
